<?php
$content = new Models_Menu();
$valid = $content->validateMenuHeader($_POST);
if(!$valid)
{
    $content->editMenuHeader($_POST, $id);
    echo '<h4>Successfully edited!</h4>';
} else {
    require_once 'editmenuheader.php';
    echo '<div class="alert alert-danger">';
    foreach ($valid as $error)
    {
        echo '<p>' . $error . '</p>';
    }
    echo '</div>';
}
?>